package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 抽盒记录对象 tb_blind_box_draw_record
 * 
 * @author hyx
 * @date 2024-11-22
 */
public class CwBlindBoxDrawRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录 ID */
    private Long recordId;

    /** 用户 ID */
    @Excel(name = "用户 ID")
    private Long userId;

    /** 盲盒 ID */
    @Excel(name = "盲盒 ID")
    private Long blindBoxId;

    /** 抽奖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "抽奖时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date drawTime;

    /** 物品 ID */
    @Excel(name = "物品 ID")
    private Long drawnContentId;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBlindBoxId(Long blindBoxId) 
    {
        this.blindBoxId = blindBoxId;
    }

    public Long getBlindBoxId() 
    {
        return blindBoxId;
    }
    public void setDrawTime(Date drawTime) 
    {
        this.drawTime = drawTime;
    }

    public Date getDrawTime() 
    {
        return drawTime;
    }
    public void setDrawnContentId(Long drawnContentId) 
    {
        this.drawnContentId = drawnContentId;
    }

    public Long getDrawnContentId() 
    {
        return drawnContentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("userId", getUserId())
            .append("blindBoxId", getBlindBoxId())
            .append("drawTime", getDrawTime())
            .append("drawnContentId", getDrawnContentId())
            .toString();
    }
}
